package com.qcby.community.mapper;

import com.qcby.community.entity.Person;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2024-03-26
 */
@Repository
public interface PersonMapper extends BaseMapper<Person> {

    @Select("SELECT COUNT(*)  FROM person  WHERE community_id = #{community_id}")
    public Integer getCountByCommunityId(Integer communityId);
}
